package com.wn.purchaeReturn.service.impl;

import com.wn.purchaeReturn.dao.PurPurchasebilldetailDao;
import com.wn.purchaeReturn.entity.PurPurchasebill;
import com.wn.purchaeReturn.entity.PurPurchasebilldetail;
import com.wn.purchaeReturn.service.PurPurchasebilldetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: yyc
 * @Date: 2022-04-18-14:44
 * @Description:
 */
@Service
@Transactional
public class PurPurchasebilldetailServiceImpl implements PurPurchasebilldetailService {
    @Autowired
    private PurPurchasebilldetailDao purPurchasebilldetailDao;

    @Override
    public List<PurPurchasebilldetail> selectBypurchaseno(String purchaseno) {
        return purPurchasebilldetailDao.selectBypurchaseno(purchaseno);
    }

    @Override
    public List<PurPurchasebilldetail> selectAll() {
        return purPurchasebilldetailDao.selectByExample(null);
    }
}
